package cn.cloudtogo.support.mysql.table;

import cn.cloudtogo.common.types.RequestHeaderObject;

import java.util.List;

/**
 * @author yaolianhua789@gmail.com
 **/
public interface TableApi {

    void create(RequestHeaderObject requestHeaderObject, TableTemplate table);

    void delete(RequestHeaderObject requestHeaderObject, String table);

    void rename(RequestHeaderObject requestHeaderObject, String table, String newTableName);

    List<String> tables(RequestHeaderObject requestHeaderObject);

    List<TableMetadata> tablesMetadata(RequestHeaderObject requestHeaderObject);

    TableMetadata tableMetadata(RequestHeaderObject requestHeaderObject, String table);
}
